#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
	int n;
	int  count = 0;
	scanf("%d", &n);
	int num = 1;
	for (int i = 0; i < n-1; i++)
	{
		if(0 == i)
			count = (num + 1) * 2;
		else
		{
			num = count;
			count = (num + 1) * 2;

		}
	}
	printf("%d", count);
	return 0;
}